import {Action, Actor} from 'iflux2';

export default class OrderBasic extends Actor{
  defaultState() {
    return {
      autoCancelTime: 1,
      autoConfirmTime: 1,
      ordersPerTenMinutes: 1,
      openTimeHour: 1,
      openTimeMinute: 0,
      closeTimeHour: 1,
      closeTimeMinute: 0,
      openReturnCoupon: 0,
      orderOptionsRequest: {}
    }
  }
  @Action('setup-init')
  basicSetupInit(state, data) {
    return state.merge(data)
  }
  @Action('on-setup')
  onSetup(state, data){
    return state.merge(data);
  }
}